package com.cet.beanmap.domain;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2023-03-24 16:27
 **/

@Component
public class Car {

    private User user;

//    public Car(@Qualifier("user1") User user) {
//        this.user = user;
//    }

    @Autowired
    public void setUser(@Qualifier("user1") User user) {
        this.user = user;
    }
}
